home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 1 / ETO Development Tools 1.iso / Essentials / MacApp Documentation / MacApp AppleLink Messages / MacApp.Tech$ Aug 89 / X0118-Segment Loading in -Aug89 < prev    next >
Encoding:
Text File  |  1989-08-30  |  1.9 KB  |  57 lines  |  [TEXT/GEOL]

  1. Item    3278719                         30-Aug-89        07:41
  2.  
  3. From:   SW0075                          SWV VTS Transportation Systems, GBG
  4.  
  5. To:     MACAPP.TECH$                    MACAPP Tech
  6.  
  7. Sub:    Segment Loading in SADE
  8.  
  9. To: MACAPP.TECH$
  10.  
  11. From: SW0075                    VTS Transportation Systems AB
  12.  
  13. Sub: Segment loading in Sade
  14.  
  15. Hi,
  16. There seems to be a problem in the segment loading when debugging with SADE.
  17. At first, five break point were set, four in segment ADependentSeg and one in
  18. segment AStarter, calling the four routines in the first one.
  19. After the break in segment AStarter, the first call to one of the routines
  20. in segment ADependentSeg caused SADE to break in with the error message :
  21.  
  22. Instruction trace at LOADER+$0018 in "myApplication"
  23. LOADER
  24.    +0018  4080D36E  0800 0007        *BTST       #$07,D0
  25.  
  26. In a second attempt, only one break point in segment ADependentSeg was set.
  27. This time everything worked out fine.
  28.  
  29. In the first erroneous case, the heap (with most resources stripped off)
  30. attributes
  31. was as follows :
  32.  
  33.   BlkAddr    BlkLength Typ MasterPtr  Flags RType   RId RFRef  RName
  34.  •$00193D84  $00001F2C  H  $00193D60  L R   CODE      1 $05E2  "Main"
  35.   $0019F9A0  $00001D68  H  $00193D14   PR   CODE     34 $05E2  "ADependentSeg"
  36.   $001A1710  $000DC398  F
  37.  •$0027DAB0  $0000026C  H  $00193D08  LPR   CODE     31 $05E2  "AnotherSeg"
  38.  
  39. In the second case, the heap attributes was as follows :
  40.  
  41.  •$00193D84  $00001F2C  H  $00193D60  L R   CODE      1 $05E2  "Main"
  42.   $001AD4E4  $000CE800  F
  43.  •$0027BCEC  $00001D68  H  $00193D14  LPR   CODE     34 $05E2  "ADependentSeg"
  44.  •$0027DA5C  $000002C0  H  $00193D08  LPR   CODE     31 $05E2  "AnotherSeg"
  45.  
  46. The segment to be loaded is allocated in the permanent memory space in the
  47. first
  48. case and in the temporary  memory space in the second. Is this causing the
  49. problems, or ... ? What's the best strategy  to overcome these problems ?
  50.  
  51. Regards
  52. Bo Ridderstolpe
  53. Dan Ryrlén
  54. VTS
  55.  
  56.  
  57.